#pragma once
#include "MessengerEventBase.h"
#include "rendering/SceneNode.h"


namespace Boon
{

	/*!
	* Event for adding a scene node to current scene-graph
	* Note: This node cannot be looked up in scene wit getNode()
			otherwise try Event_RenderComp_Created
	*/
	class BOON_API Event_Add_SceneNode : public MessengerEventBase
	{

	public:
		static const EventType				ID = 0x1a762d66;
		Event_Add_SceneNode( Rendering::ISceneNodeStrong newNode );

		virtual const EventType				GetEventID() const;
		virtual void						Serialize( std::ostream& out ) const;
		virtual IMessengerEventStrong		Copy() const;
		virtual const char*					GetName() const;

	private:
		Rendering::ISceneNodeStrong			m_NewNode;

		friend class Rendering::Scene;
	};

}
